package fr.vincent.aquarium.metier.animal;

import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Repository;

import fr.vincent.aquarium.metier.commun.HibernateDaoSupport;

@Repository("animal")
public class AnimalDaoImpl extends HibernateDaoSupport<Animal> implements
		AnimalDao {

	@Autowired
	public AnimalDaoImpl(
			@Qualifier("SessionFactory") SessionFactory sessionFactory) {
		super.setClazz(Animal.class);
		this.sessionFactory = sessionFactory;
	}
}
